<?php
/**
 * File that receives user request a control its direction
 * @copyright Model Creator 2012
 * @version control.php 1.0  
 * @since File since 16/11/2012
 */

include_once 'ModelCreator/GenerateFile.php';
include_once 'ModelCreator/GetObjects.php';
include_once 'ModelCreator/ReadFile.php';
include_once 'ModelCreator/ZipFile.php';
include_once 'ModelCreator/Install.php';
// There we set wich class will be loaded
switch ($_POST['opt']) {
    case 'connect':
        $objGetObjects = new ModelCreator_GetObjects($_POST[connection]); //Class that get all tables 
        break;
    case 'create':
        $objModelCreator = new ModelCreator_GenerateFile($_POST); //Class that creates all objects
        break;
    case 'read':
        $objReadFile = new ModelCreator_ReadFile($_POST); //Class that read file
        break;
    case 'zip':
        $objZipFile = new ModelCreator_ZipFile($_POST); // Class that create Zip Files
        break;
    case 'install':
        $objInstall = new ModelCreator_Install($_POST); // Class that create Zip Files
        break;

    default:

        break;
}





